<template>
  <div class="about">
    <h1>{{msg}}</h1>
    <button>添加</button>
    <button>批量添加</button>
    <button>批量删除</button>
  </div>
</template>

<script setup>
import { ref, getCurrentInstance, onMounted } from 'vue';
const {proxy} = getCurrentInstance();

const msg = ref('');

const hello = ()=>{
  proxy.$axios({
    method: 'get',
    url: '/hello'
  }).then(res=>{
    console.log(res.data);
    msg.value = res.data;
  })
}



onMounted(()=>{
  hello();
})
</script>

